package com.kfm.base.oop4;

public class Demo03 {

    public static void main(String[] args) {
        Student student = new Student("张三", 22, '男', "A11111");
        Student student1 = new Student("张三", 22, '男', "A11111");

        PupilStudent pupil = new PupilStudent("张三", 22, '男', "A11111");
//        pupil = new PupilStudent();

        System.out.println(pupil.getClass());
        System.out.println(student.getClass());
        System.out.println(student.getClass() == student1.getClass());

//        System.out.println(student == student1);
//        student.equals(student1);


        System.out.println(student.equals(pupil));
    }
}
